package utils;

import models.audit.AuditUser;

import org.hibernate.envers.RevisionListener;

import controllers.BaseController;

/**
 * @author rjanixz
 *
 */
public class AuditListener implements RevisionListener {

	public void newRevision(Object revisionEntity) {
		AuditUser entity = (AuditUser)revisionEntity;
		entity.setActor(BaseController.connected());
	}
}